package com.ty.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ty.system.mapper.MedicalReportMapper;
import com.ty.system.domain.MedicalReport;
import com.ty.system.service.IMedicalReportService;

/**
 * 体检报告Service业务层处理
 *
 * @author
 * @date 2024-05-26
 */
@Service
public class MedicalReportServiceImpl implements IMedicalReportService
{
    @Autowired
    private MedicalReportMapper medicalReportMapper;

    /**
     * 查询体检报告
     *
     * @param id 体检报告主键
     * @return 体检报告
     */
    @Override
    public MedicalReport selectMedicalReportById(Long id)
    {
        return medicalReportMapper.selectMedicalReportById(id);
    }

    /**
     * 查询体检报告列表
     *
     * @param medicalReport 体检报告
     * @return 体检报告
     */
    @Override
    public List<MedicalReport> selectMedicalReportList(MedicalReport medicalReport)
    {
        return medicalReportMapper.selectMedicalReportList(medicalReport);
    }

    /**
     * 新增体检报告
     *
     * @param medicalReport 体检报告
     * @return 结果
     */
    @Override
    public int insertMedicalReport(MedicalReport medicalReport)
    {
        return medicalReportMapper.insertMedicalReport(medicalReport);
    }

    /**
     * 修改体检报告
     *
     * @param medicalReport 体检报告
     * @return 结果
     */
    @Override
    public int updateMedicalReport(MedicalReport medicalReport)
    {
        return medicalReportMapper.updateMedicalReport(medicalReport);
    }

    /**
     * 批量删除体检报告
     *
     * @param ids 需要删除的体检报告主键
     * @return 结果
     */
    @Override
    public int deleteMedicalReportByIds(Long[] ids)
    {
        return medicalReportMapper.deleteMedicalReportByIds(ids);
    }

    /**
     * 删除体检报告信息
     *
     * @param id 体检报告主键
     * @return 结果
     */
    @Override
    public int deleteMedicalReportById(Long id)
    {
        return medicalReportMapper.deleteMedicalReportById(id);
    }
}
